module.exports = {
    config: _getConfig("pro"),
    templateId: {
        shtz: "nfUHWVmdhPHJNBoA0is2wMlY0B8Ji52NkoA_5lIJUEo", //审核通知
        lytz: "sNZZiXftglceuJbdFoESHZMRidUh-Aa2IsTRa5wcS9k" //留言通知
    }
}

/*
* 环境配置管理
* */
function _getConfig(name = "dev") {
    let config = {}
    switch (name) {
        case "dev": //测试版
            config = {
                env: "diushi-test-3dhb5",
                miniprogramState: "developer",
            }
            break
        case "trial": //体验版
            config = {
                env: "diushi-test-3dhb5",
                miniprogramState: "trial",
            }
            break
        case "pro": //生产
            config = {
                env: "diushi-6gnlo440c828e17f",
                miniprogramState: "trial",
            }
            break
        default:
            console.error("环境配置错误")
            break
    }
    return config
}